<div class="medicos index">
	<h2 class="titulo"><?php echo __('Medições'); ?></h2>
	<table cellpadding="0" cellspacing="0" style="width:100%">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('bebe'); ?></th>
			<th><?php echo $this->Paginator->sort('data'); ?></th>
			<th><?php echo $this->Paginator->sort('altura'); ?></th>
			<th><?php echo $this->Paginator->sort('peso'); ?></th>
			<th><?php echo $this->Paginator->sort('idade'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php $linha = 1; ?>
	<?php foreach ($medicos as $medico): ?>
	<?php 
		if($linha%2==0){
			$class="impar";
		} else {
			$class="par";
		}
		$linha++;
	?>
	<tr <?php echo "class='$class'" ?>>
		<td><?php echo h($medico['Medico']['id']); ?>&nbsp;</td>
		<td><?php echo h($medico['Medico']['bebe']); ?>&nbsp;</td>
		<td><?php echo h($medico['Medico']['data']); ?>&nbsp;</td>
		<td><?php echo h($medico['Medico']['altura']); ?>&nbsp;</td>
		<td><?php echo h($medico['Medico']['peso']); ?>&nbsp;</td>
		<td><?php echo h($medico['Medico']['idade']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $medico['Medico']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $medico['Medico']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $medico['Medico']['id']), null, __('Are you sure you want to delete # %s?', $medico['Medico']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
